

import 'package:json_annotation/json_annotation.dart';

part 'media.g.dart';

@JsonSerializable(includeIfNull: false, explicitToJson: true)
class Query {
  var minWidth;
  var maxHeight;
  var minAspectRatio;

  Query({this.minWidth, this.maxHeight, this.minAspectRatio});

  factory Query.fromJson(Map<String, dynamic> json) => _$QueryFromJson(json);

  Map<String, dynamic> toJson() => _$QueryToJson(this);
}

@JsonSerializable(includeIfNull: false, explicitToJson: true)
class Media {
  Query? query;
  var option;

  Media({this.query, this.option});


  factory Media.fromJson(Map<String, dynamic> json) => _$MediaFromJson(json);

  Map<String, dynamic> toJson() => _$MediaToJson(this);
}
